#ifndef FIELDDIALOG_H
#define FIELDDIALOG_H

#include <QDialog>
#include <QSplitter>
#include "utils.h"
#include "format/format.h"
#include "FieldView.h"
#include "FieldModel.h"
#include "BufferTab.h"

class FieldDialog : public QDialog
{
    Q_OBJECT

public:
    FieldDialog(Format *format, FERange range, void *context);
    ~FieldDialog();

signals:
    void closed(FieldDialog *obj);

protected:
    void closeEvent(QCloseEvent *event) override;

private:
    QSplitter *splitter;
    FieldView *view_;
    FieldModel *model_;
    BufferTab *tab;
};

#endif // FIELDDIALOG_H
